import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * @author CoderXshuai
 * @date 2021/8/5 17:50
 */
public class ReadNumberInChinese {
    static String[] snum = new String[10];
    static String[] mods = new String[6];
    static StringBuilder builder = new StringBuilder();

    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String s = reader.readLine();
        reader.close();
        if ("0".equals(s)) {
            System.out.print("ling");
            return;
        }
        int len = s.length();
        int start = 0;
        for (int i = 0; i < 10; i++) {
            switch (i) {
                case 0:
                    snum[i] = " ling";
                    mods[i] = "";
                    break;
                case 1:
                    snum[i] = " yi";
                    mods[i] = " Shi";
                    break;
                case 2:
                    snum[i] = " er";
                    mods[i] = " Bai";
                    break;
                case 3:
                    snum[i] = " san";
                    mods[i] = " Qian";
                    break;
                case 4:
                    snum[i] = " si";
                    mods[i] = " Wan";
                    break;
                case 5:
                    snum[i] = " wu";
                    mods[i] = " Yi";
                    break;
                case 6:
                    snum[i] = " liu";
                    break;
                case 7:
                    snum[i] = " qi";
                    break;
                case 8:
                    snum[i] = " ba";
                    break;
                case 9:
                    snum[i] = " jiu";
                    break;
                default:
                    break;
            }
        }
        if ('-' == (s.charAt(0))) {
            builder.append("Fu");
            start = 1;
        }
        if (len - start > 8) {
            add(s, start, len);
            start++;
            builder.append(mods[5]);
        }
        while (len - start > 4) {
            if ('0' != s.charAt(start) || '0' != s.charAt(start + 1) || '0' != s.charAt(start + 2)) {
                if ('0' != s.charAt(start))
                    add(s, start, len);
                else if ('0' != s.charAt(start - 1)) {
                    builder.append(snum[0]);
                }
                start++;
                if (len == start + 4) {
                    if ('g' == builder.charAt(builder.length() - 1))
                        builder.delete(builder.length() - 5, builder.length());
                    builder.append(mods[4]);
                }
            } else {
                start += 4;
                builder.append(snum[0]);
            }
        }

        while (len - start > 0) {
            if ('0' != s.charAt(start))
                add(s, start, len);
            else if ('0' != s.charAt(start - 1)) {
                builder.append(snum[0]);
            }
            start++;
        }
        if ('g' == builder.charAt(builder.length() - 1))
            builder.delete(builder.length() - 4, builder.length());
        if (builder.charAt(0) == ' ')
            System.out.println(builder.substring(1));
        else
            System.out.println(builder.toString());
    }

    public static void add(String s, int j, int len) {
        int mod = (len - j - 1) % 4;
        builder.append(snum[Integer.parseInt(String.valueOf(s.charAt(j)))]).append(mods[mod]);
    }
}
